package alive

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func CheckAlive(checkAlive string) {

	// 1.创建路由
	r := gin.Default()
	// 2.绑定路由规则，执行的函数
	// gin.Context，封装了request和response
	r.GET("/checkAlive", func(c *gin.Context) {
		c.String(http.StatusOK, "服务正常访问!")
	})

	_ = r.Run(checkAlive)

}
